import { Component, Input } from '@angular/core';

@Component({
  selector: 'app-set-start-and-end',
  templateUrl: './set-start-and-end.component.html',
  styleUrls: ['./set-start-and-end.component.scss']
})
export class SetStartAndEndComponent {
  @Input() data: any;
  form = {
    planStartDate: null,
    planEndDate: null,
  }
  date = []
  constructor() { }

  ngOnInit(): void {

  }
  onChange(event: any) {
    this.form.planStartDate = this.date[0]
    this.form.planEndDate = this.date[1]
  }
}
